//
//  AddRenGouCell.m
//  LuCaiZhu
//
//  Created by stella Ma on 2018/12/20.
//
#import "UIColor+NN.h"
#import "Header.h"
#import "AddRenGouCell.h"

@implementation AddRenGouCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setBookMode:(BookingModel *)bookMode {
    self.name.text = bookMode.ProductName;
    self.date.text = bookMode.PurchaseOpenDay;
    self.money.text = bookMode.SUMInitalAmount;
    self.amount.text = bookMode.SUMSurvivingShare;

    if ([bookMode.IsButton isEqualToString:@"0"]) {
//        self.addButton.enabled = YES;
        self.rengouPic.image = [UIImage imageNamed:@"rengou"];
        self.rengouLa.textColor = MAIN_COLOR_Red;
    }else{
//        self.addButton.enabled = NO;
        self.rengouPic.image = [UIImage imageNamed:@"rengou2"];
        self.rengouLa.textColor = [UIColor colorWithHexString:@"#c1c1c1"];
    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
